
/**
 * Represents a table for playing card games on. Can Contain a {@link Deck} or a {@link Game}.
 * 
 * @author Ricky Vincent
 */
public class Table {
	
	private Game game;
	private Deck deck;
	
	/**
	 * Constructs a new empty {@link Table} object.
	 */
	public Table() {}
	
	/**
	 * Constructs a new {@link Table} object with a {@link Deck}.
	 * 
	 * @param deck The {@link Deck} to add.
	 */
	public Table(Deck deck) {
		this.deck = deck;
	}
	
	/**
	 * @return The {@link Deck} on this {@link Table}
	 */
	public Deck getDeck() {
		return deck;
	}

	/**
	 * @return The {@link Game} on this {@link Table}
	 */
	public Game getGame() {
		return game;
	}

	/**
	 * @param game The {@link Game} to set.
	 */
	public void setGame(Game game) {
		this.game = game;
	}

	/**
	 * @param deck The {@link Deck} to set.
	 */
	public void setDeck(Deck deck) {
		this.deck = deck;
	}
}
